package com.cool.shark.mapper;

import com.cool.shark.pojo.entity.Admin;
import com.cool.shark.pojo.vo.AdminListItemVO;
import com.cool.shark.pojo.vo.AdminStandardVO;
import com.cool.shark.pojo.vo.ProductCategoryVo;

import java.util.List;

/**
 * @Name: AdminMapper
 * @Author: 西风残叶
 * @Date: 2024/3/31 18:47
 * @Version: 1.0
 * @TODO: TODO
 */
public interface AdminMapper {
    int insert(Admin admin);
    Admin getByUsername(String username);
    List<AdminListItemVO> list();
    List<ProductCategoryVo> getProductCategory();
    int goodsCount();
    AdminStandardVO getAdminByUsername(String username);
    int updateAdminByUsername(Admin admin);

    int deleteAdmin(String username);
}